<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="renderer" content="webkit" />
    <meta name="force-rendering" content="webkit" />
    <title>订单详情</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="css/shop.css">
    <link rel="stylesheet" href="./css/weui.min.css">
    <link rel="stylesheet" href="./css/jquery-weui.min.css">
    <script src="./js/jquery-2.1.4.js"></script>
    <script src="./js/jquery-weui.js"></script>
    <script type="text/javascript" src="./js/city-picker.js" charset="utf-8"></script>
    <script src="wxJs/utils/storage.js"></script>
    <script src="wxJs/utils/contain.js"></script>
    <style>
        .weui-form-preview__label,.weui-form-preview__label{
            color: #333;
        }
    </style>
</head>

<body>
    <div class="header">
        <a class="haader-left" href="javascript:window.history.go(-1)"><i class="iconfont icon-left"></i></a>
        <div class="haader-content">订单详情</div>
        <div class="haader-right">
            <!-- <i class="iconfont icon-riqi"></i>&nbsp; -->
            <!-- <i class="iconfont icon-shaixuan"></i> -->
        </div>
    </div>

    <div class="weui-form-preview" id="oneOrder">
        <!-- <div class="weui-form-preview__ft">
            <a class="weui-form-preview__btn weui-form-preview__btn_default" href="javascript:">辅助操作</a>
            <button type="submit" class="weui-form-preview__btn weui-form-preview__btn_primary"
                href="javascript:">返回</button>
        </div> -->
    </div>
</body>
<script>

    var orderId = GetQueryString("orderId")
    $.post(getWeiContextPath()+"/wx/order/queryOneOrder",{orderId:orderId},function (obj) {
        console.log(obj)
        var reduceMoney = 0
        if (obj.reduceMoney){
            reduceMoney =obj.reduceMoney;
        }
        $("#oneOrder").append('<div class="weui-cell">\n' +
            '            <div class="weui-cell__bd">订单号</div>\n' +
            '            <div class="weui-cell__ft">\n' +
            '                '+obj.orderNum+'\n' +
            '            </div>\n' +
            '        </div>\n' +
            '        <div class="weui-cell">\n' +
            '            <div class="weui-cell__bd">购买时间</div>\n' +
            '            <div class="weui-cell__ft">\n' +
            '                '+obj.createTime+'\n' +
            '            </div>\n' +
            '        </div>\n' +
            '        <div class="weui-cell">\n' +
            '            <div class="weui-cell__bd">订单金额</div>\n' +
            '            <div class="weui-cell__ft">'+obj.beforePrice+'元</div>\n' +
            '        </div>\n' +
            '        <div class="weui-cell">\n' +
            '            <div class="weui-cell__bd">优惠金额</div>\n' +
            '            <div class="weui-cell__ft">'+reduceMoney+'元</div>\n' +
            '        </div>\n' +
            '        <div class="weui-cell">\n' +
            '            <div class="weui-cell__bd">积分抵扣</div>\n' +
            '            <div class="weui-cell__ft">'+(obj.useJifen/10)+'元</div>\n' +
            '        </div>\n' +
            '        <div class="weui-cell">\n' +
            '            <div class="weui-cell__bd">获得积分</div>\n' +
            '            <div class="weui-cell__ft">'+obj.returnJifen+'</div>\n' +
            '        </div>\n' +
            '        <div class="weui-form-preview__hd">\n' +
            '            <label class="weui-form-preview__label">付款金额</label>\n' +
            '            <em class="weui-form-preview__value cl-main">'+obj.realityPrice+'元</em>\n' +
            '        </div>')
    })

</script>
</html>